package org.neuedu.chapter09_0701.demo01;

import java.sql.Date;
import java.sql.Timestamp;

public class DateDemo02 {
    public static void main(String[] args) {
        Date date = new Date(1625101701363L);
        System.out.println(date);

        // sql Date 转 util Date
        java.util.Date date1 = new java.util.Date(date.getTime());
        System.out.println(date1);

        Timestamp timestamp = new Timestamp(new java.util.Date().getTime());
        System.out.println(timestamp);


    }
}
